<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ECMAUnit Tests</title>
    <script language="JavaScript" type="text/javascript" src="chrome://mylog/content/mylog.js"></script>
    <script language="JavaScript" type="text/javascript" src="chrome://mylog/content/mylog-datastorage.js"></script>
    <script type="text/javascript" src="chrome://mylog/content/test/ecmaunit.js"> </script>
    <script language="JavaScript" type="text/javascript" src="chrome://mylog/content/mylog-utility.js"></script>
    <script type="text/javascript">
//<![CDATA[
       
        function TestTestCase() {
            this.name = 'TestTestCase';
            var dataStore;
            var dataHandler;
         
            this.setUp = function() {
                /* not in use here, didn't have to define it but this might be
                used as a reference
                */
            }
            this.testAssertEquals = function() {
                var emptyTag = "";
                this.assertEquals(handleAddTag(emptyTag), false);
            }
            this.tearDown = function() {
                /* not in use here, didn't have to define it but this might be
                used as a reference
                */
            }
        }
        TestTestCase.prototype = new TestCase;

        function TestTestCase2() {
            this.name = 'TestTestCase2';
            var dataStore;
            var dataHandler;
            this.setUp = function() {
                /* not in use here, didn't have to define it but this might be
                used as a reference
                */
            }
            this.testAssertEquals = function() {
                var tag = "handleaddtagtag";
                this.assertEquals(handleAddTag(tag), true);
                this.assertEquals(handleAddTag(tag), false);
            }

            this.tearDown = function() {
                /* not in use here, didn't have to define it but this might be
                used as a reference
                */
            }
        }

        TestTestCase2.prototype = new TestCase;
        
        function runTests() {
            placeholder = document.getElementById('placeholder');
            var testsuite = new TestSuite(new HTMLReporter(placeholder));
            testsuite.registerTest(TestTestCase);
            testsuite.registerTest(TestTestCase2);
            testsuite.runSuite();
        }
//]]>
</script>
</head>

<body onload="runTests()">
<h3>EcmaUnit tests for MyLog HandleAddTag</h3>
<div id="placeholder"> </div>
</body>
</html>